#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main()
{
	int m = 0;
	int n = 0;
	int i = 0;
	int k = 1;
	scanf("%d %d", &m, &n);
	for (i = m; i <= n; i++)
	{
		if (i % 3 == 0 && i % 5 != 0 && i % 2 != 0)
		{
			if (k % 8 != 1)
				printf(",");
			printf("%d", i);
			if (k % 8 == 0)
				printf("\n");
			k++;
		}
	}
	printf(",");
	return 0;
}
